﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _06.StringSum
{
    class stringSum
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter string of integers:");
            int sum = 0;
            string integers= Console.ReadLine();
            string[] arr = integers.Split(' ');
            for (int i = 0; i < arr.Length; i++)
			{
			 sum = sum + int.Parse(arr[i]);
			}
            Console.WriteLine("The sum of the elements in the array is {0}",sum);
        }
    }
}
